import java.util.LinkedList;


public class Film {

    public static String getFilm( String hyperlink ){
        String details = "";
        try{
            details = DBConnection.getQuery( "select filmdetails from film where filmposter = '" + hyperlink + "'", ImageInJFrame.theConnection );
        }catch( Exception e ){
        }
        return details;
    }

    public static LinkedList<String> getFilmTimes( String hyperlink ){
        LinkedList<String> times = new LinkedList();
        try{
            times = DBConnection.getLLQuery( "select filmtime from showings, film where showings.filmID = film.filmID and filmPoster = '" + hyperlink + "'", ImageInJFrame.theConnection );
        }catch( Exception e){
        }
        return times;
    }

}

